const {merge} = require('webpack-merge')
const common = require('./webpack.common')
const {BundleAnalyzerPlugin} = require('webpack-bundle-analyzer')
const bundleAnalyzer = new BundleAnalyzerPlugin()

module.exports = ()=>merge(common,{
    // @ts-ignore
    mode:"production",
    plugins:[bundleAnalyzer]
})